#ifndef NODEDATABASE_H
#define NODEDATABASE_H

#include <QWidget>
#include<QtGui>
#include<QLineEdit>
#include<QVBoxLayout>
#include<QLabel>
#include <QTextEdit>
#include<QDebug>

#include"types.h"

class NodeDataBase : public QWidget
{
public:
    NodeDataBase(QWidget *parent = nullptr);
    virtual double getData()=0;
    virtual void setData()=0;//common setData from text
    ~NodeDataBase();


private:
    std::shared_ptr<QVBoxLayout> layout;
};

class NodeDataNumberInput : public NodeDataBase{
public:
    NodeDataNumberInput(QWidget *parent = nullptr);
    double getData() override;
    void setData() override{}   // not need to implement
    ~NodeDataNumberInput();

private:
    std::shared_ptr<QLineEdit> edit= std::make_shared<QLineEdit>("0",this);

};

#endif // NODEDATABASE_H
